/**
 * Created by De Niro on 15-4-21.
 */
app.config(['$routeProvider',function($routeProvider){
    $routeProvider.when('/chatting/:id',{
            templateUrl: 'view/chatting.html',
            controller: 'chattingController'
        }
    ).when('/groupChatting/:id',{
            templateUrl: 'view/groupChatting.html',
            controller: 'groupChattingController'
        }
    ).when('/',{
            templateUrl: 'view/chatWidget.html',
            controller: 'chatController'
        }
    ).when('/config',{
            templateUrl: 'view/configWidget.html',
            controller: 'configController'
        }
    ).when('/contact',{
            templateUrl: 'view/contactWidget.html',
            controller: 'contactController'
        }
    ).when('/config-portrait',{
            templateUrl:'view/configPortrait.html',
            controller:'configPortraitController'
        }).otherwise({
            redirectTo: '/'
        });
}]);